package com.wider.foundation.Nx;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class NxFiles implements Iterator,Iterable{

	private List<NxFile> listData;
	private Iterator iterator;
	public NxFiles(String[] listArray,NxFS fs,String path){
		listData=new ArrayList<NxFile>();
		//System.out.println(listArray[0]);
		for(int loop=0;loop<listArray.length;loop++){
			listData.add(new NxFile(fs,path+'\\'+listArray[loop]));
			
		}
		iterator=listData.iterator();
	}
/*	public void add(NxFile indata){
		listData.add(indata);
		
	}
	*/
	
	
	public boolean hasNext() {
		
		return iterator.hasNext();
	}


	public Object next() {
		
		return iterator.next();
	}


	public void remove() {

		
	}

	public Iterator iterator() {
		
		return this;
	}

}
